const mongoose = require('mongoose');

const schema = new mongoose.Schema({
    poster: String,
    time: {type: Date, default: Date.now()},
    content: String,
    like: {type: Number, default: 0},
})

module.exports = mongoose.model('Comment', schema);